[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Function            ddatetofull - convert a date to full string

  Syntax              char *ddatetofull(struct ddate *source);

  Prototype in        datehk.h

  Remarks             ddatetofull converts a date from the structure
                      format ddate to a string in the form
                           Month dd, Year  where

                           Month = the name of the month ("November")
                           dd    = the day (5, 12, etc.)
                           Year  = the year + 1900

  Return value        returns a pointer to the storage location
                      containing the date in string format, or NULL if
                      space could not be allocated.

  See also            Cal...(), date_convert(), ddatetoshort(),
                      ddatetostr(), fulltoddate(), Greg...(), Jul...(),
                      monthexpand(), shorttoddate(), strtoddate()

  Example             #include <datehk.h>

                      main()
                      {
                           struct ddate today;
                           char *strtoday;

                      /* assign some value to today */
                           strtoday = ddatetofull(&today);
                           printf("today is %d-%d-%d\n", today.dmon,
                                  today.dday, today.dyear);
                           printf("or %s\n", (strtoday==NULL) ?
                                  "no memory" : strtoday);
                      }


See Also: ddatetoshort() ddatetostr() fulltoddate() shorttoddate() strtoddate()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson